package com.lanou.tipsy.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.lanou.tipsy.R;
import com.lanou.tipsy.base.BaseActivity;

/**
 * Created by dllo on 15/11/5.
 *
 *   碎屏效果  启动页面
 */
public class EggsActivity extends BaseActivity {
    public static final String TAG = "EggsActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //布局中使用了自定义的透明View
        setContentView(R.layout.activity_eggs);
        //设置延时跳转
        Handler handler = new Handler();
            handler.postDelayed(new Runnable() {
                @Override
                public void run() {
                    Intent intent = new Intent(EggsActivity.this, MainActivity.class);
                    startActivity(intent);
                    EggsActivity.this.finish();
                    finish();
                }
            }, 8000);
        }

    }
